﻿/// <reference path="../plugin/rsslock.js" />

$(function () {

    var pwd = [];
    var h5lock = new RssLock({ "wrap": $("#h5lockwrap") }), h5lock2 = new RssLock({ "wrap": $("#h5lockwrap2"), "rows": 3 }), title = $("#h5lockpage h2");
    h5lock.onLockEnd = function (result) {
        if (!pwd[0]) {
            pwd[0] = result.join("");
            title.html("再次绘制");
        } else if (!pwd[1]) {
            pwd[1] = result.join("");
        }
        if (pwd[1]) {
            title.html(pwd[0] !== pwd[1] ? "两次不相等，请重新绘制" : "绘制成功");
            pwd = [];
        }
    }

    h5lock2.onLockEnd = h5lock.onLockEnd;

});